import Vue from 'vue'
import App from './App.vue';

import GoodsList from './components/插槽头部.vue'
import GoodsSearch from './components/插槽尾部.vue'
import MyInfo from './components/插槽中部'

import VueRouter from 'vue.router'

const routes = [
      {
      path:'/goods-list',
      component:GoodsList,
    },
    {
      path:'/goods-search',
      coponent:GoodsSearch,
    },
    {
      path:'/my-info',
      component:MyInfo
    }
]
Vue.use(VueRouter)

const router = new VueRouter({
  routes,
})

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
